package tjut.opp.testI12;

import java.util.Scanner;

public class RewardTest {

	public static void main(String[] args) {
		double re=0;
		Scanner input=new Scanner(System.in);
		System.out.println("输入利润：");
		double profit=input.nextDouble();
		if(profit<=100000){
			re=profit*0.1;
		}else if(profit>100000&&profit<200000){
			re=(profit-100000)*0.075;
		}else if(profit>200000&&profit<400000){
			re=(profit-200000)*0.05;
		}else if(profit>400000&&profit<600000){
			re=(profit-400000)*0.03;
		}else if(profit>600000&&profit<1000000){
			re=(profit-600000)*0.015;
		}else {
			re=(profit-1000000)*0.01;
		}
		System.out.println("应发放"+re+"人民币");

	}

}
